import {get, post, del, put} from "@/apis/http/request";
import {DepressCollect} from "@/apis/model/depress/DepressCollectModel";

/**
* 得到列表
* @param params
*/
export const getDepressCollectList = (params: any) => get("/depressCollect/list", params)

/**
* 得到分页列表
* @param params
*/
export const depressCollectPage = (params: any) => post("/depressCollect/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteDepressCollectById = (id: number) => del("/depressCollect/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertDepressCollect = (param: DepressCollect) => post("/depressCollect", param)

/**
* 更新数据
* @param param
*/
export const updateDepressCollect = (param: DepressCollect) => put("/depressCollect", param)